package com.secsbrain.deploy.client.model;

import java.io.Serializable;

/**
 * 发布参数
 *
 * @author zhaoyi
 */
public class BuildParam implements Serializable{

	private static final long serialVersionUID = -1543606645112367361L;
	
	private Long buildId;//构建ID
	
	/**以下参数构建准备必填*/
	private Long appId;//应用Id
	
	private String envName;//环境名称
	
	private boolean k8s;//是否发k8s
	
	private String branchName;//分支名称
	
	private String buildUserName;//发布人姓名
	
	/**部分构建选填*/
	private boolean isPackage=true;//是否打包
	
	private boolean isDeploy=true;//是否发布
	
	private boolean isTest=false;//是否自动化测试
	
	private String groupName;//发布分组
	
	private Long groupId;//分组ID
	
	private Long approvalId;//审批ID
	
	private Long batchId;//批量ID
	
	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getEnvName() {
		return envName;
	}

	public void setEnvName(String envName) {
		this.envName = envName;
	}

	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public Long getBuildId() {
		return buildId;
	}

	public void setBuildId(Long buildId) {
		this.buildId = buildId;
	}

	public String getBuildUserName() {
		return buildUserName;
	}

	public void setBuildUserName(String buildUserName) {
		this.buildUserName = buildUserName;
	}

	public boolean isPackage() {
		return isPackage;
	}

	public void setPackage(boolean isPackage) {
		this.isPackage = isPackage;
	}

	public boolean isDeploy() {
		return isDeploy;
	}

	public void setDeploy(boolean isDeploy) {
		this.isDeploy = isDeploy;
	}

	public boolean isTest() {
		return isTest;
	}

	public void setTest(boolean isTest) {
		this.isTest = isTest;
	}
	
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	
	public Long getApprovalId() {
		return approvalId;
	}

	public void setApprovalId(Long approvalId) {
		this.approvalId = approvalId;
	}
	
	public Long getBatchId() {
		return batchId;
	}

	public void setBatchId(Long batchId) {
		this.batchId = batchId;
	}

	public boolean isK8s() {
		return k8s;
	}

	public void setK8s(boolean k8s) {
		this.k8s = k8s;
	}

	@Override
	public String toString() {
		return "BuildParam [buildId=" + buildId + ", buildUserName=" + buildUserName + ", appId=" + appId + ", envName="
				+ envName + ", branchName=" + branchName + "]";
	}

}
